import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { DictionaryComponent } from "./dictionary/dictionary.component";
import { DictionaryItemComponent } from "./dictionary-item/dictionary-item.component";
import { SystemConfigComponent } from "./system-config/system-config.component";
import { GenerateCodeComponent } from "./generate-code/generate-code.component";
import { ApiAccessComponent } from "./api-access/api-access.component";

const routes: Routes = [
  { path: "dict", component: DictionaryComponent, data: { title: "字典配置" } },
  { path: "dict-item/:dictId", component: DictionaryItemComponent, data: { title: "字典明细" } },
  { path: "config", component: SystemConfigComponent, data: { title: "系统配置" } },
  { path: "code-config", component: GenerateCodeComponent, data: { title: "编码规则" } },
  { path: "api-access", component: ApiAccessComponent, data: { title: "接口数据" } }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SysRoutingModule {
}
